A watchdog that interrupts long running code.
